package com.violet.myorm.annotations;

import com.violet.myorm.core.enums.ManyState;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({java.lang.annotation.ElementType.FIELD})
public @interface ManyKey {

    String foreign();       // 关联的表的字段名
    String field();         // 本表的字段名

    ManyState state() default ManyState.CASCADE;
}
